import request from '@/utils/request.js'

export const getProjectListApi = (pageNum, pageSize, queryDto) => {
  return request.get(
    '/admin/project/findByPage/' + pageNum + '/' + pageSize,
    queryDto
  )
}

// 新增
export const saveProjectAPi = (project) => {
  return request.post('/admin/project/save', project)
}

//编辑
export const updateProjectAPi = (project) => {
  return request.post('/admin/project/update', project)
}

//删除
export const deleteProjectAPi = (id) => {
  return request.delete(`/admin/project/delete/${id}`)
}
